#ng  dag version 
#now runing

filename=test-dag_reuse_a_unroll_nompi_pool.log
#dag_time=test-dag-time.log

rm -f $filename
#rm -f $dag_time
touch $filename
#touch $dag_time
#make clean; make reuse_9
  for p in 1 2 4 8 16 32 64
  do
    for num in  1  
    do
      echo "dag runing, T=100 -Dthread_num=$p number=$num " 
      echo "dag runing, T=100 -Dthread_num=$p number=$num" >> $filename
#ifdef TARG_SW5
#      bsub -I  -p -q q_sw_expr -b -share_size 4096 -N 1 -cgsp 64 ./2d5p_reuse_9 $p 100 >> $filename
      bsub -I  -p -q q_sw_expr -b -share_size 4096 -N 1 -cgsp 64 ./2d5p_reuse_9_a $p 100 >> $filename
#      bsub -I  -p -q q_sw_expr -b -share_size 4096 -N 1 -cgsp 64 ./2d5p_unreuse $p 100 >> $filename
#endif
#ifdef TARG_SW3
#      srun -b -m 1 -p host  -N 1 -n $p -s 4096  -K 256  ./2d5p_reuse_9 $p 100 >> $filename
#endif
    done
  done
#grep -E 'aver' $filename>>$dag_time
